package cn.hx.mall.sell.controller;

import cn.hx.mall.sell.entity.SmsFlashPromotionLog;
import cn.hx.mall.sell.service.SmsFlashPromotionLogService;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * 限时购通知记录(SmsFlashPromotionLog)表控制层
 *
 * @author makejava
 * @since 2022-11-02 16:10:29
 */
@RestController
@RequestMapping("smsFlashPromotionLog")
public class SmsFlashPromotionLogController {
    /**
     * 服务对象
     */
    @Resource
    private SmsFlashPromotionLogService smsFlashPromotionLogService;

    /**
     * 通过主键查询单条数据
     *
     * @param id 主键
     * @return 单条数据
     */
    @GetMapping("selectOne")
    public SmsFlashPromotionLog selectOne(Integer id) {
        return this.smsFlashPromotionLogService.queryById(id);
    }

}